//pjax
Do.add('pjax', {
    path: publicPath + 'system/js/pjax/jquery.pjax.js'
});

//area
Do.add('area', {
    path: publicPath + 'system/js/area/minicity.js'
});

var uiPath = publicPath + 'uikit/';
//uikit
Do.add('uikit', {
    path: uiPath + 'js/uikit.js'
});

//notify
Do.add('notifyCss', {
    path: uiPath + 'css/components/notify.min.css',
    type: 'css'
});
Do.add('notify', {
    path: uiPath + 'js/components/notify.min.js',
    requires: ['uikit', 'notifyCss']
});

//tooltip
Do.add('tooltipCss', {
    path: uiPath + 'css/components/tooltip.min.css',
    type: 'css'
});
Do.add('tooltip', {
    path: uiPath + 'js/components/tooltip.min.js',
    requires: ['uikit', 'tooltipCss']
});

//upload
Do.add('uploadCss', {
    path: uiPath + 'css/components/upload.min.css',
    type: 'css'
});
Do.add('upload', {
    path: uiPath + 'js/components/upload.min.js',
    requires: ['uikit', 'uploadCss']
});

//lightbox
Do.add('lightbox', {
    path: uiPath + 'js/components/lightbox.min.js',
    requires: ['uikit']
});

//sortable
Do.add('sortableCss', {
    path: uiPath + 'css/components/sortable.min.css',
    type: 'css'
});
Do.add('sortable', {
    path: uiPath + 'js/components/sortable.min.js',
    requires: ['uikit', 'sortableCss']
});

//nestable
Do.add('nestableCss', {
    path: uiPath + 'css/components/nestable.min.css',
    type: 'css'
});
Do.add('nestable', {
    path: uiPath + 'js/components/nestable.min.js',
    requires: ['uikit', 'nestableCss']
});

//select
Do.add('selectCss', {
    path: uiPath + 'css/components/form-select.min.css',
    type: 'css'
});
Do.add('select', {
    path: uiPath + 'js/components/form-select.min.js',
    requires: ['uikit', 'selectCss']
});

//sticky
Do.add('stickyCss', {
    path: uiPath + 'css/components/sticky.min.css',
    type: 'css'
});
Do.add('sticky', {
    path: uiPath + 'js/components/sticky.min.js',
    requires: ['uikit', 'stickyCss']
});

//slideshow
Do.add('slideshowCss', {
    path: uiPath + 'css/components/slideshow.min.css',
    type: 'css'
});
Do.add('slideshow', {
    path: uiPath + 'js/components/slideshow.min.js',
    requires: ['uikit', 'slideshowCss']
});

//slidenav
Do.add('slidenavCss', {
    path: uiPath + 'css/components/slidenav.min.css',
    type: 'css'
});
Do.add('slidenav', {
    path: uiPath + 'js/components/slidenav.min.js',
    requires: ['uikit', 'slidenavCss']
});

//htmleditor
Do.add('htmleditorCss', {
    path: uiPath + 'css/components/htmleditor.min.css',
    type: 'css'
});
Do.add('htmleditor', {
    path: uiPath + 'js/components/htmleditor.min.js',
    requires: ['uikit', 'htmleditorCss']
});

//dotnav
Do.add('dotnavCss', {
    path: uiPath + 'css/components/dotnav.min.css',
    type: 'css'
});
Do.add('dotnav', {
    path: uiPath + 'js/components/dotnav.min.js',
    requires: ['uikit', 'dotnavCss']
});

//autocomplete
Do.add('autocompleteCss', {
    path: uiPath + 'css/components/autocomplete.min.css',
    type: 'css'
});
Do.add('autocomplete', {
    path: uiPath + 'js/components/autocomplete.min.js',
    requires: ['uikit', 'autocompleteCss']
});

//accordion
Do.add('accordionCss', {
    path: uiPath + 'css/components/accordion.min.css',
    type: 'css'
});
Do.add('accordion', {
    path: uiPath + 'js/components/accordion.min.js',
    requires: ['uikit', 'accordionCss']
});

//password
Do.add('passwordCss', {
    path: uiPath + 'css/components/form-password.min.css',
    type: 'css'
});
Do.add('password', {
    path: uiPath + 'js/components/form-password.min.js',
    requires: ['uikit', 'passwordCss']
});

//base载入
Do.add('base', {
    path: publicPath + 'system/js/base/base.js'
});

//form
Do.add('form', {
    path: publicPath + 'system/js/form/Validform.min.js'
});

//pre
Do.add('preCss', {
    path: publicPath + 'system/js/pre/prettify.css',
    type: 'css'
});
Do.add('pre', {
    path: publicPath + 'system/js/pre/prettify.js',
    requires: ['preCss']
});

//time
Do.add('time', {
    path: publicPath + 'system/js/date/laydate.js'
});

//ueditor
Do.add('ueditorConfig', {
    path: publicPath + 'system/js/ueditor/ueditor.config.js'
});
Do.add('ueditorSrc', {
    path: publicPath + 'system/js/ueditor/ueditor.all.min.js',
    requires: ['ueditorConfig']
});
Do.add('ueditor', {
    path: publicPath + 'system/js/ueditor/lang/zh-cn/zh-cn.js',
    requires: ['ueditorSrc']
});

//dialog
Do.add('dialogSrc', {
    path: publicPath + 'system/js/dialog/layer.js'
});

Do.add('dialog', {
    path: publicPath + 'system/js/dialog/extend/layer.ext.js',
    requires: ['dialogSrc']
});

//ystep
Do.add('ystepCss', {
    path: publicPath + 'system/js/ystep/css/ystep.css',
    type: 'css'
});
Do.add('ystep', {
    path: publicPath + 'system/js/ystep/ystep.js',
    requires: ['ystepCss']
});

//countdown
Do.add('countdownCss', {
    path: publicPath + 'system/js/countdown/TimeCircles.css',
    type: 'css'
});
Do.add('countdown', {
    path: publicPath + 'system/js/countdown/TimeCircles.js',
    requires: ['countdownCss']
});

//popover
Do.add('popoverCss', {
    path: publicPath + 'system/js/popover/jquery.webui-popover.min.css',
    type: 'css'
});
Do.add('popover', {
    path: publicPath + 'system/js/popover/jquery.webui-popover.min.js',
    requires: ['popoverCss']
});

//Tpl
Do.add('tpl', {
    path: publicPath + 'system/js/tpl/laytpl.js'
});

//调试函数
function debug(obj) {
    if (typeof console != 'undefined') {
        console.log(obj);
    }
}